export default function(app) {
	app.service('ngDialogConfirm', ngDialogConfirm);

	function ngDialogConfirm(ngDialog) {
		'ngInject';

    this.confirm = (title, content) => {
      return ngDialog.openConfirm({
        template: 'paConfirm',
        className: 'ngdialog-theme-default pa-confirm-theme',
        controller: function($scope) {
          'ngInject';
          $scope.modalTitle = title ? title : '信息';
          $scope.modalContent = content ? content : '确认进行此操作吗';
        }
      });
    }
	}
}